/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.cargas;

import com.excel2objects.common.excel.annotations.ExcelColumn;
import java.io.Serializable;
import java.util.Date;
import net.easoftware.code.beans.JpaEntityConverter;
import net.easoftware.code.beans.cargas.annotation.DataFilterConf;
import net.easoftware.code.beans.cargas.impl.OrdenRetenidaCAFilter;
import net.easoftware.code.beans.facade.LineaNegocio;
import net.easoftware.code.beans.facade.UnidadNegocio;
import net.easoftware.code.beans.jpa.OrdenretenidacaStore;
import net.easoftware.code.error.EaError;

/**
 *
 * @author eliu
 *
 */
@DataFilterConf(filter = OrdenRetenidaCAFilter.class)
public class OrdenRetenidaCA extends JpaEntityConverter implements Serializable {

    private UnidadNegocio un;
    private LineaNegocio ln;
    @ExcelColumn(order = "1")
    private String compania;
    @ExcelColumn(order = "2")
    private String codigo;
    @ExcelColumn(order = "3")
    private String cliente;
    @ExcelColumn(order = "4")
    private String segmento;
    @ExcelColumn(order = "5")
    private String tipo;
    @ExcelColumn(order = "6")
    private String sdsrp1;
    @ExcelColumn(order = "7")
    private Date fecha1;
    @ExcelColumn(order = "8")
    private Date fecha2;
    @ExcelColumn(order = "9")
    private String usuario1;
    @ExcelColumn(order = "10")
    private String zona;
    @ExcelColumn(order = "11")
    private String repventas;
    @ExcelColumn(order = "12")
    private String sdlttr;
    @ExcelColumn(order = "13")
    private String sdnxtr;
    @ExcelColumn(order = "14")
    private String hora;
    @ExcelColumn(order = "15")
    private String usuario2;
    @ExcelColumn(order = "16")
    private String tcredito;
    @ExcelColumn(order = "17")
    private String mscredito;
    @ExcelColumn(order = "18")
    private String limite;
    @ExcelColumn(order = "19")
    private String tiporet;
    @ExcelColumn(order = "20")
    private String documento;
    @ExcelColumn(order = "21")
    private String retencion;
    @ExcelColumn(order = "22")
    private String tiporetencion2;
    @ExcelColumn(order = "26")
    private String subtipo;

    @Override
    public Object getEntityBean() throws EaError {
        OrdenretenidacaStore or = (OrdenretenidacaStore) super.getEntityBean();
        or.setTipoDoc(this.tipo);
        return or;
    }

    public String getSubtipo() {
        return subtipo;
    }

    public void setSubtipo(String subtipo) {
        this.subtipo = subtipo;
    }

    public UnidadNegocio getUn() {
        return un;
    }

    public void setUn(UnidadNegocio un) {
        this.un = un;
    }

    public LineaNegocio getLn() {
        return ln;
    }

    public void setLn(LineaNegocio ln) {
        this.ln = ln;
    }

    public OrdenRetenidaCA() {
        setDestClassType(OrdenretenidacaStore.class);
    }

    public String getCodigo() {
        return codigo;
    }

    public String getSegmento() {
        return segmento;
    }

    public void setSegmento(String segmento) {
        this.segmento = segmento;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }

    public String getCliente() {
        return cliente;
    }

    public void setCliente(String cliente) {
        this.cliente = cliente;
    }

    public Date getFecha2() {
        return fecha2;
    }

    public void setFecha2(Date fecha2) {
        this.fecha2 = fecha2;
    }

    public String getDocumento() {
        return documento;
    }

    public void setDocumento(String documento) {
        this.documento = documento;
    }

    public String getTipo() {
        return tipo;
    }

    public void setTipo(String tipo) {
        this.tipo = tipo;
    }

    public String getZona() {
        return zona;
    }

    public void setZona(String zona) {
        this.zona = zona;
    }

    public String getHora() {
        return hora;
    }

    public void setHora(String hora) {
        this.hora = hora;
    }

    public String getUsuario2() {
        return usuario2;
    }

    public void setUsuario2(String usuario2) {
        this.usuario2 = usuario2;
    }

    public String getLimite() {
        return limite;
    }

    public void setLimite(String limite) {
        this.limite = limite;
    }

    public String getRetencion() {
        return retencion;
    }

    public void setRetencion(String retencion) {
        this.retencion = retencion;
    }

    public String getCompania() {
        return compania;
    }

    public void setCompania(String compania) {
        this.compania = compania;
    }

    public String getSdsrp1() {
        return sdsrp1;
    }

    public void setSdsrp1(String sdsrp1) {
        this.sdsrp1 = sdsrp1;
    }

    public Date getFecha1() {
        return fecha1;
    }

    public void setFecha1(Date fecha1) {
        this.fecha1 = fecha1;
    }

    public String getUsuario1() {
        return usuario1;
    }

    public void setUsuario1(String usuario1) {
        this.usuario1 = usuario1;
    }

    public String getRepventas() {
        return repventas;
    }

    public void setRepventas(String repventas) {
        this.repventas = repventas;
    }

    public String getSdlttr() {
        return sdlttr;
    }

    public void setSdlttr(String sdlttr) {
        this.sdlttr = sdlttr;
    }

    public String getSdnxtr() {
        return sdnxtr;
    }

    public void setSdnxtr(String sdnxtr) {
        this.sdnxtr = sdnxtr;
    }

    public String getTcredito() {
        return tcredito;
    }

    public void setTcredito(String tcredito) {
        this.tcredito = tcredito;
    }

    public String getMscredito() {
        return mscredito;
    }

    public void setMscredito(String mscredito) {
        this.mscredito = mscredito;
    }

    public String getTiporet() {
        return tiporet;
    }

    public void setTiporet(String tiporet) {
        this.tiporet = tiporet;
    }

    public String getTiporetencion2() {
        return tiporetencion2;
    }

    public void setTiporetencion2(String tiporetencion2) {
        this.tiporetencion2 = tiporetencion2;
    }
}
